package cn.edu.neu.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.neu.mapper.RelpyMapper;
import cn.edu.neu.model.Reply;

@Service
@Transactional
public class RelpyServiceImpl implements RelpyService {

	@Resource
	private RelpyMapper mapper;

	@Override
	public List<Reply> getEvaluteByRemovieId(String movieId) {
		List<Reply> replies = mapper.getEvaluteByRemovieId(movieId);
		return replies;
	}

	@Override
	public int addReply(String removieId, String name, String remeId, String retime, String rebody, String reimg) {
		int add = mapper.addReply(removieId, name, remeId, retime, rebody, reimg);
		return add;
	}

}
